// Copyright (c) 2023 Presto Labs Pte. Ltd.
// Author: ziyan

#pragma once

#include <map>
#include <memory>
#include <regex>
#include <string>
#include <vector>

// internal
#include "coin2/exchange/base/feed/processor.h"
#include "coin2/exchange/base/market/enums.h"


namespace coin2::exchange::bitmart::feed_v3 {
namespace impl {
using namespace coin2::exchange::base::symbology;
class BitmartFeedProcessor : public base::feed::FeedParsingProcessor {
 public:
  explicit BitmartFeedProcessor(
      const std::string& system_name,
      const coin2::exchange::di::ConstantInjection& ci,
      const feed::RawParserConfig& config,
      const MarketExchangeApi& mea)
      : FeedParsingProcessor(
            system_name,
            mea,
            ci,
            config,
            "cc/coin2/exchange/bitmart/feed_v3/schema.json") {}
  void OnTopicRecord(const base::executor::TopicRecordPacket& packet) override;

 private:
  std::set<std::string> observed_trade_symbols {};
};

}// namespace impl
using impl::BitmartFeedProcessor;
}  // namespace coin2::exchange::bitmart::feed_v3